<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="修改个人资料"; ?>
<div class="icon32" id="icon-users"><br>
</div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>修改个人资料<a target="<?php echo $arr['target']?>" href="<?php echo $arr['updateUser']?>"><?php echo $arr['img']?></a>
<a class="add-new-h2"
	href="<?php echo CController::createUrl('adminUserPanel/show&id='.$model->id) ?>">用户使用情况统计</a></h2>
<div id="your-profile"><?php $form=$this->beginWidget('CActiveForm', array()); ?>
<h3><img alt=""
	src="<?php echo Yii::app()->request->baseUrl."/statics/images/myprofile.png"?>">
基本信息</h3>
<?php echo $form->errorSummary($model); ?>
<table class="form-table">
	<tr class="form-field form-required">
		<th scope="row"><?php echo $form->labelEx($model,'name'); ?></th>
		<td><?php echo $model->name;?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'nick'); ?></th>
		<td><?php echo $form->textField($model,'nick',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'email'); ?></th>
		<td><?php echo $form->textField($model,'email',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'status'); ?><br>
		<span class="description">(冻结用户将不能用)</span></th>
		<td><?php echo $form->dropDownList($model,"status",$model->statusArray,array()) ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'isAdmin'); ?><br>
		<span class="description">(可对整个系统进行后台管理)</span></th>
		<td><?php echo $form->dropDownList($model,"isAdmin",$model->adminArray,array()) ?></td>
	</tr>
</table>
<p class="submit"><?php echo CHtml::submitButton('立即更新',array("class"=>"Miniyun_btn01_btn6","onmouseover"=>"this.className='Miniyun_btn01_btn6hover'","onmouseout"=>"this.className='Miniyun_btn01_btn6'")); ?>


<h3><img alt=""
	src="<?php echo Yii::app()->request->baseUrl."/statics/images/myprofile.png"?>">
重置密码</h3>
<table class="form-table">
	<tbody>
	<?php $this->widget('CMiniyunPasswdInput', array(
	 "model"=>$model,
	 "passDesc"=>"如果您想修改您的密码，请在此输入新密码。不然请留空。",
	 "form"=>$form
	)); ?>
	</tbody>
</table>
<p class="submit"><?php echo CHtml::submitButton('立即更新',array("class"=>"Miniyun_btn01_btn6","onmouseover"=>"this.className='Miniyun_btn01_btn6hover'","onmouseout"=>"this.className='Miniyun_btn01_btn6'")); ?>


<h3><img alt=""
	src="<?php echo Yii::app()->request->baseUrl."/statics/images/myprofile.png"?>">
更多个人信息</h3>
<table class="form-table">
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'phone'); ?></th>
		<td><?php echo $form->textField($model,'phone',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'realName'); ?></th>
		<td><?php echo $form->textField($model,'realName',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'qq'); ?></th>
		<td><?php echo $form->textField($model,'qq',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'website'); ?></th>
		<td><?php echo $form->textField($model,'website',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'space'); ?> <br>
		<span class="description">(单位：M,1024M=1G)</span></th>
		<td><?php echo $form->textField($model,'space'); ?></td>
	</tr>
	<tr class="form-field">
		<th scope="row"><?php echo $form->labelEx($model,'memo'); ?><br>
		<span class="description"></span></th>
		<td><?php echo $form->textArea($model,'memo',array('size'=>45,'maxlength'=>45)); ?></td>
	</tr>
	<tr>
		<th scope="row">
		<td><span class="description">关于您的一些信息。不会被公开。</span></td>
	</tr>
</table>
<p class="submit"><?php echo CHtml::submitButton('立即更新',array("class"=>"Miniyun_btn01_btn6","onmouseover"=>"this.className='Miniyun_btn01_btn6hover'","onmouseout"=>"this.className='Miniyun_btn01_btn6'")); ?>
	<?php $this->endWidget(); ?></p>
</div>

